home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / file_name < prev    next >
Text File  |  2001-04-06  |  1KB  |  40 lines

  1. OBSOLETE
  2. SYNOPSIS
  3.         string file_name()
  4.         string file_name(object ob)
  5.  
  6. DESCRIPTION
  7.         Get the name of an object <ob> or, if no argument is given, of
  8.         the current object.
  9.  
  10.         This name is the name under which the object is stored in the
  11.         muds object table. It is initialised at the creation of the
  12.         object such that blueprints are named after the file they are
  13.         compiled from (without the trailing '.c'), and clones receive
  14.         the name of their blueprint, extended by '#' followed by
  15.         a unique non-negative number. These rules also apply to
  16.         virtual objects - the real name/type of virtual objects
  17.         is ignored.
  18.  
  19.         The name of an object can be changed with rename_object(), and
  20.         object_name() will reflect any of these changes.
  21.         
  22.         The returned name always begins with '/' (absolute path),
  23.         except when the parser runs in COMPAT mode.
  24.  
  25. EXAMPLES
  26.                 find_object(file_name(ob)) == ob
  27.         
  28.         This is guaranteed to be true for all objects ob that are not
  29.         destructed.
  30.  
  31. HISTORY
  32.         In LDMud 3.2.6 renamed to object_name(), this old name is
  33.         available as alias.
  34.         Since LDMud 3.2.9, not available if driver is compiled without
  35.           USE_DEPRECATED.
  36.  
  37. SEE ALSO
  38.         clone_object(E), load_name(E), load_object(E), find_object(E),
  39.         program_name(E), rename_object(E), object_name(E)
  40.